#include "E:\Meus Documentos\Dropbox\Projetos PIC\16F877A\Serial Teste Pisca Led\Serial Teste Pisca Led.h"

#int_RDA
void  RDA_isr(void) 
{
char texto;
texto = getc();
putc(texto);
}

void main()
{

   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   setup_psp(PSP_DISABLED);
   setup_spi(SPI_SS_DISABLED);
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);
   setup_comparator(NC_NC_NC_NC);
   setup_vref(FALSE);
   
   enable_interrupts(INT_RDA);
   enable_interrupts(GLOBAL);

   // TODO: USER CODE!!

while(true){
printf("teste");
output_high(pin_a0);
delay_ms(500);
output_low(pin_a0);
delay_ms(500);

}

}
